package com.larsgard.gedviewer.client.service.callback;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.larsgard.gedviewer.client.event.EventBus;
import com.larsgard.gedviewer.client.event.ListUserTreeResultEvent;
import com.larsgard.gedviewer.shared.ListUserTreesResult;

public class UserTreeCallback implements AsyncCallback<ListUserTreesResult> {

    @Override
    public void onFailure(Throwable caught) {

    }

    @Override
    public void onSuccess(ListUserTreesResult result) {
	ListUserTreeResultEvent event = new ListUserTreeResultEvent(result);
	EventBus.getInstance().fireEvent(event);
    }

}
